package com.sansan.qiangji.service.impl.warehouse;

import com.sansan.qiangji.VO.board.CountPushBoxVO;
import com.sansan.qiangji.entity.warehouse.PushOrderBoxDetail;
import com.sansan.qiangji.entity.warehouse.example.PushOrderBoxDetailExample;
import com.sansan.qiangji.mapper.warehouse.PushOrderBoxDetailMapper;
import com.sansan.qiangji.service.inter.warehouse.PushOrderBoxDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PushOrderBoxDetailServiceImpl implements PushOrderBoxDetailService {

    @Autowired
    private PushOrderBoxDetailMapper pushOrderBoxDetailMapper;

    @Override
    public List<PushOrderBoxDetail> findByBoxDetailStatusAndBoxCode(String boxDetailStatus, String boxCode) {
        return pushOrderBoxDetailMapper.findByBoxDetailStatusAndBoxCode(boxDetailStatus, boxCode);
    }

    @Override
    public List<PushOrderBoxDetail> findByBoxCode(String boxCode) {
        return pushOrderBoxDetailMapper.findByBoxCode(boxCode);
    }

    @Override
    public List<PushOrderBoxDetail> findByBoxDetailCode(String boxDetailCode) {
        return pushOrderBoxDetailMapper.findByBoxDetailCode(boxDetailCode);
    }

    @Override
    public List<PushOrderBoxDetail> findByDetailCodeAndStatus(String pushOrderDetailCode, String boxDetailStatus) {
        return pushOrderBoxDetailMapper.findByDetailCodeAndStatus(pushOrderDetailCode, boxDetailStatus);
    }

    @Override
    public long countByExample(PushOrderBoxDetailExample example) {
        return pushOrderBoxDetailMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(PushOrderBoxDetailExample example) {
        return pushOrderBoxDetailMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer pushOrderDetailId) {
        return pushOrderBoxDetailMapper.deleteByPrimaryKey(pushOrderDetailId);
    }

    @Override
    public int insert(PushOrderBoxDetail record) {
        return pushOrderBoxDetailMapper.insert(record);
    }

    @Override
    public int insertSelective(PushOrderBoxDetail record) {
        return pushOrderBoxDetailMapper.insertSelective(record);
    }

    @Override
    public List<PushOrderBoxDetail> selectByExample(PushOrderBoxDetailExample example) {
        return pushOrderBoxDetailMapper.selectByExample(example);
    }

    @Override
    public PushOrderBoxDetail selectByPrimaryKey(Integer pushOrderDetailId) {
        return pushOrderBoxDetailMapper.selectByPrimaryKey(pushOrderDetailId);
    }

    @Override
    public int updateByExampleSelective(PushOrderBoxDetail record, PushOrderBoxDetailExample example) {
        return pushOrderBoxDetailMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(PushOrderBoxDetail record, PushOrderBoxDetailExample example) {
        return pushOrderBoxDetailMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(PushOrderBoxDetail record) {
        return pushOrderBoxDetailMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(PushOrderBoxDetail record) {
        return pushOrderBoxDetailMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<CountPushBoxVO> countPushBox() {
        return pushOrderBoxDetailMapper.countPushBox();
    }
}
